#ifndef CHATUSERLIST_H
#define CHATUSERLIST_H

#include <QListWidget>
#include <QWheelEvent>
#include <QEvent>
#include <QScrollBar>

// 好友聊天列表类
class ChatUserList : public QListWidget
{
    Q_OBJECT
public:
    ChatUserList(QWidget *parent = nullptr);

protected:
    bool eventFilter(QObject *watched, QEvent *event) override;

signals:
    // 加载用户列表的信号（滑轨已经到底部，开始加载新的用户）
    void sig_loading_chat_user();

private:
    bool m_load_pending;

};

#endif // CHATUSERLIST_H
